<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/10/11
  Time: 8:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>购买产品</title>
</head>
<script>
    function f(){
        history.back();
    }
</script>

<body>
    <span style="color: gray" onclick="f()"><</span>&nbsp;&nbsp;&nbsp;<span style="display:inline-block;width:200px;font-weight:bold;"><h2>购买产品</h2></span>
    <hr>
    <form action="${pageContext.request.contextPath}/productServlet?pid=${MyProduct.pid}" method="post">
        <input type="hidden" name="action" value="isPay">
        <span style="color: red">${msg}</span><br>
        <span>产品名称：</span><input type="text" readonly value="${MyProduct.pname}"><br>
        <span>支付账户：</span><input type="text" readonly value="${MyAccount.phone}"><br>
        <span>支付密码：</span><input type="password" name="password" value="" ><br>
        <span>当前余额：${MyAccount.money}</span><br>
        <span>请输入购买份数：</span><input type="text" name="pnum" value="" ><br>
        <%--<span>所需钱数：</span><input type="text" name="pay" value="" readonly>--%>
        <input type="submit" value="提交">
    </form>


</body>
</html>
